﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LogM.Logic
{
    public interface IRepository<T> where T : IEntity
    {
        T GetById(int id);
        IQueryable<T> GetAll();
        void SaveOrUpdate(T entity);
        void DeleteOnSubmit(T entity);
    }

    public interface IRepository
    {
        object GetById(int id);
        IQueryable GetAll();
        void SaveOrUpdate(object entity);
        void DeleteOnSubmit(object entity);
    }
}
